import { instance } from "../utils/request";
const getAdministratorsPagination = async (params) => {
	return await instance.get("/Administrators/Pagination", params);
};

const addAdministrators = async (data) => {
	return await instance.post("/Administrators/Add", data);
};

const updateAdministrators = async (data) => {
	return await instance.post("/Administrators/Update", data);
};

const getAdministratorsDetail = async (id) => {
	return await instance.get("/Administrators/Detail", { id : id });
};

const deleteAdministrators = async (id) => {
	return await instance.post("/Administrators/Delete", { id : id });
};

const administratorsApi = {
	getAdministratorsPagination,
	addAdministrators,
	updateAdministrators,
	getAdministratorsDetail,
	deleteAdministrators,
};

export default administratorsApi
